﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CpartyEdit.aspx.cs" Inherits="Customer_Profile.eCard.CpartyEdit" %>
<%@ Register Src="../mainTop.ascx" TagName="mainTop" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>
	<HEAD>
		<title>edit cparty</title>
		<LINK href="/css/style.css" type="text/css" rel="stylesheet">
        <script language="javascript" type="text/javascript" src="/js/common.js"></script>
        <script language="javascript" type="text/javascript" src="/js/CalPopUp.js"></script>
        <script language="javascript" type="text/javascript">
            function check() {
                var cpartyname = document.getElementById("txtName");
                if (cpartyname.value == '') {
                    alert('客户名称不能为空');
                    return false;
                }

                var Phone = document.getElementById("txtPhone");
                if (Phone.value == '') {
                    alert('电话不能空');
                    return false;
                }

                var txtIDcode = document.getElementById("txtIDcode");
                if (txtIDcode.value == '') {
                    alert('证件号码不能为空');
                    return false;
                }

                var Birthday = document.getElementById("txtBirthday");
                if (Birthday.value == '') {
                    alert('出生日期不能为空');
                    return false;
                }
                return true;
            }
        </script>
</HEAD>
	<body  bgcolor="#ffffff" leftmargin="0" topmargin="0">
		<form id="Form1" method="post" runat="server">
			<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="1" background="/images/dot_vline.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
					<td width="15" valign="top"><img src="/images/spacer.gif" width="15" height="1"></td>
					<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="/images/spacer.gif" width="1" height="5"></td>
							</tr>
							<tr>
								<td height="23"><span class="navi-blk">
                                    <uc1:mainTop ID="MainTop1" runat="server" />
										个人旅行卡管理>客户管理>客户修改</span></td>
							</tr>
							<tr>
								<td background="/images/dot_hline.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
							</tr>
						</table>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="/images/spacer.gif" width="1" height="8"></td>
							</tr>
						</table>
						<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td valign="top">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td bgcolor="#1765a7"><img src="/images/spacer.gif" width="1" height="3"></td>
										</tr>
										<tr>
											<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="12" class="bglist1"><img src="/images/arw_blu_rgt.gif" width="4" height="7"></td>
														<td class="bglist1">用户信息</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td><img src="/images/spacer.gif" width="1" height="1"></td>
										</tr>
									</table>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="4">
										<tr>											
											<td class="bglist-3">客户名称：</td>
											<td class="bglist-4">
												<input name="cparty_name" type="text" class="input2" id="txtName" size="20" runat="server">
                                                <font color="red">*</font>
											</td>
                                            <td class="bglist-3">电话</td>
											<td class="bglist-4">
                                               <input name="cparty_phone" type="text" class="input2" id="txtPhone" size="36" runat="server">	
                                                <font color="red">* 做为订购产品指定电话</font>									
											</td>
										</tr>
                                        <tr>
											<td class="bglist-3">证件类型：</td>
											<td class="bglist-4">
                                                <asp:DropDownList ID="dropIDtype" runat=server CssClass="input3"></asp:DropDownList>
											</td>
											<td class="bglist-3">证件号码：</td>
											<td class="bglist-4">
												<input name="cparty_idcode" type="text" class="input2" id="txtIDcode" size="36" runat="server"><font color="red">*</font>
											</td>
										</tr>
                                        <tr>
											<td class="bglist-3">性别：</td>
											<td class="bglist-4">
                                                <asp:DropDownList width="36" ID="dropSex"  CssClass="input3" runat="server">
                                                <asp:ListItem Text="男" Value="男" ></asp:ListItem>
                                                <asp:ListItem Text="女" Value="女"></asp:ListItem>
                                            </asp:DropDownList>
											</td>
											<td class="bglist-3">生日：</td>
											<td class="bglist-4">
												<input name="cparty_birthday" type="text" class="input2" id="txtBirthday" size="36" runat="server">
                                                <img style="cursor: hand" onclick="JavaScript:calPopForCMon(txtBirthday, 'ss');" height="14" src="/images/dot_date.gif" width="16" align="absMiddle">
                                                <font color="red">*格式：1985-10-21</font>
											</td>
										</tr>
                                        <tr>
											<td class="bglist-3">邮箱：</td>
											<td class="bglist-4">
												<input name="cparty_email" type="text" class="input2" id="txtEmail" size="36" runat="server">
											</td>
											<td class="bglist-3">邮政编码：</td>
											<td class="bglist-4">
												<input name="cparty_zip" type="text" class="input2" id="txtZip" size="36" runat="server">
											</td>
										</tr>
                                        <tr>
											<td class="bglist-3">地址：</td>											
											<td class="bglist-4" colspan="3">
												<input name="cparty_address" type="text" class="input2" id="txtAddress" size="72" runat="server">
											</td>
										</tr>
										<tr>
											<td colspan="4" class="bglist-3">
                                            <div align="right">													
                                                 <asp:Button ID="btnCpartySave" runat="server" class="button" Text="修改" onclick="btnCpartySave_Click" OnClientClick="return check()" />                                                    
											</div>
											</td>
										</tr>
                                   </table>                                    
								</td>
							</tr>
						</table>
					</td>
					<td width="10" valign="top"><img src="/images/spacer.gif" width="10" height="1"></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
<%=strScript %>